<div class='formulaire_spip'>
    [<p class="reponse_formulaire reponse_formulaire_ok">(#ENV**{message_ok})</p>]
	[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
    
    <form method='post' action="#ENV{action}" id="form_#FORM"><div>
    <input type="hidden" value="" name="id_component_delete" id="id_component_delete" />
			#ACTION_FORMULAIRE{#ENV{action}}			
			<ul>    
            
                [(#CONFIG{ecatalogue/use_module_product_field_is_separate}|?{
                    [(#SAISIE{case, is_separate, label=<:ecatalogue:is_separate:>:, explication=<:ecatalogue:is_separate_explication:>, valeur_oui=1})]
                })]
                
                [(#CONFIG{ecatalogue/use_module_product_field_is_composite}|?{
                    [(#SAISIE{case, is_composite, label=<:ecatalogue:is_composite:>:, explication=<:ecatalogue:is_composite_explication:>, valeur_oui=1})]
                })]
                
			</ul>
            
	           <INCLURE{fond=formulaires/ecatalogue_composite/edit_composite}{env}>
            
            <p class='boutons'>
				<input type='submit' name='save_submit' value='<:bouton_enregistrer:>' />
			</p>
		</div></form>
</div>
<script>
$(document).ready(function() {
    $('#form_#FORM .delete_link').click(function(){
	   $('#form_#FORM input#id_component_delete').val($(this).attr('data-id_article'));
       $('#form_#FORM').submit();
	});
    
    if (!$('#form_#FORM #champ_is_composite').attr('checked'))
        $('#form_#FORM #edit_composite').hide();
    $('#form_#FORM #champ_is_composite').click(function(){        
        $('#form_#FORM #edit_composite').slideToggle();
    });
});
</script>